package com.gfhd.multithread;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.PostConstruct;

@SpringBootApplication
public class MultithreadApp {
    @Autowired
    private MyRun myRun;

    private static MyRun myRunStatic;

    @PostConstruct
    private void init(){
        myRunStatic = myRun;
    }

    public static void main(String[] args) {
        SpringApplication.run(MultithreadApp.class, args);
        myRunStatic.run8();
    }

}
